package lab04.test03;

public class Test03 {
    public static void main(String[] args) {

        //继承
//        HelloWorldThread thread=new HelloWorldThread();
//        thread.start();
//
//        HelloWorldRunnable runnable=new HelloWorldRunnable();
//        runnable.run();

        //实现
        Thread thread=new Thread(new HelloWorldRunnable());
        thread.start();

        Thread thread1=new Thread(new HelloWorldThread());
        thread1.start();
    }
}
